/* GUI CONVERTED from rcshmtb2.p (converter v1.76) Thu Mar 21 15:32:45 2002 */
/* rcshmtb2.p - Release Management Customer Schedules                   */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                  */
/* All rights reserved worldwide.  This is an unpublished work.         */
/* $Revision: 1.6.1.2 $                                                         */
/*V8:ConvertMode=Maintenance                                            */
/* REVISION: 7.3    LAST MODIFIED: 08/13/93           BY: WUG *GE19*    */
/* REVISION: 7.3    LAST MODIFIED: 09/11/91           BY: rmh *GM22*    */
/* REVISION: 7.3    LAST MODIFIED: 05/15/95           BY: dxk *G0MT*    */
/* REVISION: 8.6    LAST MODIFIED: 10/16/96    BY: *K003* Kieu Nguyen   */
/* REVISION: 8.6    LAST MODIFIED: 05/20/98    BY: *K1Q4* Alfred Tan    */
/* REVISION: 8.6    LAST MODIFIED: 10/15/98    BY: *J32J* Manish K.     */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00    BY: *N0KP* myb           */
/* Old ECO marker removed, but no ECO header exists *F0PN*              */
/* $Revision: 1.6.1.2 $    BY: Rajaneesh S.       DATE: 02/21/02  ECO: *L13N*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* SHIPPER MAINT SUBPROGRAM */

define variable   recno as recid.

define input parameter user_id as character.
define input parameter line_id as character.

define shared temp-table work_sr_wkfl like sr_wkfl.

for each work_sr_wkfl exclusive-lock:
   delete work_sr_wkfl.
end.

for each sr_wkfl
   where sr_userid = user_id
     and sr_lineid = line_id exclusive-lock:
   create work_sr_wkfl.
   recno = recid(work_sr_wkfl).

   assign
      work_sr_wkfl.sr_userid = sr_wkfl.sr_userid
      work_sr_wkfl.sr_site   = sr_wkfl.sr_site
      work_sr_wkfl.sr_loc    = sr_wkfl.sr_loc
      work_sr_wkfl.sr_lotser = sr_wkfl.sr_lotser
      work_sr_wkfl.sr_ref    = sr_wkfl.sr_ref
      work_sr_wkfl.sr_qty    = sr_wkfl.sr_qty .

   delete sr_wkfl.
end.

for each lotw_wkfl
   where lotw_userid = user_id
   exclusive-lock:
   delete lotw_wkfl.
end. /* FOR EACH lotw_wkfl */
